﻿<!DOCTYPE HTML>
<html>

	<head>
		<meta charset="utf-8">
		<link rel="stylesheet" type="text/css" href="static/h-ui/css/H-ui.min.css" />
		<link rel="stylesheet" type="text/css" href="lib/Hui-iconfont/1.0.8/iconfont.css" />
		<title>用户管理</title>

		<!-- 引入jquery -->
		<script src="plugins/jQuery/jquery-2.2.3.min.js"></script>
		<link rel="stylesheet" href="plugins/bootstrap/css/bootstrap.min.css">
		<!-- 引入 angular 文件 -->
		<script type="text/javascript" src="plugins/angularjs/angular.min.js"></script>
		<!-- 分页组件结束 -->
		<!-- 引入 angularjs 分页组件 和 样式 -->
		<script src="plugins/angularjs/pagination.js"></script>
		<link rel="stylesheet" href="plugins/angularjs/pagination.css">
		<!-- 分页组件结束 -->
		<!-- 引入 angularJS 外部 js 文件 -->
		<!-- 公共基础 分页 模块 -->
		<script type="text/javascript" src="js/base_pagination.js"></script>
		<!-- 引入 文章 服务层 -->
		<script type="text/javascript" src="js/service/inexService.js"></script>
		<!-- 引入文章 类型 服务层 -->
		<script type="text/javascript" src="js/service/userService.js"></script>
		<!-- 引入公共 基础controller 控制层 -->
		<script type="text/javascript" src="js/controller/baseController.js"></script>
		<!-- 引入brandController 控制层 -->
		<script type="text/javascript" src="js/controller/inexController.js"></script>

	</head>
	<body ng-app="tilong" ng-controller="inexController" ng-init="reloadList()" >
		<nav class="breadcrumb"><i class="Hui-iconfont">&#xe67f;</i> 首页 <span class="c-gray en">&gt;</span> 用户管理 <span class="c-gray en">&gt;</span> 用户收支列表
			<a class="btn btn-success radius r" style="line-height:1.6em;margin-top:3px" href="javascript:location.replace(location.href);" title="刷新"><i class="Hui-iconfont">&#xe68f;</i></a>
		</nav>
		<div class="page-container">
			<div class="text-c">
				
				<span class="select-box inline">
				<select name="articletype"  ng-model="searchEntity.cateId" class="select" id="articletype" >
					<option value="">全部类型</option>
					<option value="0" ng-selected="searchEntity.cateId == 0">收入</option>
					<option value="1" ng-selected="searchEntity.cateId == 1">支出</option>
					
				</select>
			</span> 
				<input type="text" ng-model="searchEntity.openId" name="" id="openId" placeholder="openId" style="width:250px" class="input-text"><!-- onclick="searchArticle()" -->
				<!-- ng-click="search02($event,searchEntity.cateId,searchEntity.beginTime,searchEntity.endTime,searchEntity.title)" -->
				 日期：
				<input type="date" ng-model="searchEntity.time" id="time" class="input-text Wdate" style="width:150px;">
				<button name="" id=""  class="btn btn-success" type="submit" ng-click="search02($event,searchEntity.cateId,searchEntity.openId,searchEntity.time)"><i class="Hui-iconfont"  >&#xe665;</i> 搜用户</button>
		</div>
			<div class="cl pd-5 bg-1 bk-gray mt-20">
				<span class="l">
		<a href="javascript:;" ng-click="dele();selectIds=[]" class="btn btn-danger radius" >
			<i class="Hui-iconfont">&#xe6e2;</i> 批量删除
		</a>
		
		<button onclick="removeIframe()" class="btn btn-primary radius">关闭选项卡</button>
		</span>
				<span class="r">共有数据：<strong>{{paginationConf.totalItems}}</strong> 条</span>
			</div>
			<div class="mt-20">
				<table class="table table-border table-bordered table-bg table-hover table-sort table-responsive">
					<thead>
						<tr class="text-c">
							<th width="70"><input type="checkbox" name="" value="全选" ng-click="selectAll($event)"></th>
							<th width="80">ID</th>
							<th width="80">收支名称</th>
							<th width="80">用户openid</th>
							<th width="80">用户昵称</th>
							<th width="80">用户图像</th>
							<th width="80">日期</th>
							<th width="100">星期</th>
							<th width="200">金额</th>
							<th width="200">收入/支出</th>
							<th width="200">备注</th>
							<th width="200">操作</th>
						</tr>
					</thead>
					<tbody>
						<tr class="text-c" ng-repeat="entity in list">
							<td><input id="sel" type="checkbox" ng-click="updateSelection(entity.id)" ng-checked="checkSelected(entity.id)"></td>
							<td>{{$index+1}}</td>
							<td class="text-l">
									{{entity.typeName}}
							</td>
							<td class="text-l">
										{{entity.openId}}
							</td>
							<td>{{entity.nickName}}</td>
							<td>
									<a class="maincolor" href="{{entity.avatarUrl}}" target="_blank"><img width="170" class="picture-thumb" src="{{entity.avatarUrl}}"></a>
								</td>
							<td class="text-l">
									{{entity.time}}
							</td>
							<td class="text-l">
									{{entity.week}}
							</td>
							<td class="text-l">
									{{entity.num}}
							</td>
							<td class="text-l">
									{{getCateName(entity.cateId)}}
							</td>
							<td class="text-l">
									{{entity.mark}}
							</td>
							
							
							<td class="f-14 td-manage">
								
								<div >
									<a style="text-decoration:none" class="ml-5" ng-click="delsingle(entity.id)" href="javascript:;" title="删除"><i class="Hui-iconfont">&#xe609;</i></a>	
								</div>
							</td>
						</tr>
					</tbody>
				</table>
			</div>
			
			<!-- 分页条 -->
			<tm-pagination conf="paginationConf"></tm-pagination>

		</div>
		
		
			<!--_footer 作为公共模版分离出去-->
		<script type="text/javascript" src="lib/jquery/1.9.1/jquery.min.js"></script>
		<script type="text/javascript" src="lib/layer/2.4/layer.js"></script>
		<script type="text/javascript" src="static/h-ui/js/H-ui.min.js"></script>
		<script type="text/javascript" src="static/h-ui.admin/js/H-ui.admin.js"></script>
		<script>
			function searchArticle(){
				var cateId=jQuery("#articletype").val();
				var beginTime=jQuery("#logmin").val();
				var endTime=jQuery("#logmax").val();
				var title=jQuery("#title").val();
				
				$.post("../article/criteria.do",{"cateId":cateId,"beginTime":beginTime,"endTime":endTime,"title":title},function(date){ 
					 $scope.reload();
				})
			}
		</script>
	</body>

</html>